import request from "@/utils/request";
import type { ResponseType } from "@/type/ResponseType";
import type { Category } from "@/type/CategoryType";

enum Enum {
   fetchCategoryListAPI = "/category/list"
}

/**
 * @description获取所有分类的接口
 * */
export const fetchCategoryListAPI = () => request.get<{list:Category[]}, ResponseType<{list:Category[]}>>(Enum.fetchCategoryListAPI);
